import axios from 'axios'

const baseURL = 'http://192.168.3.92:8080'
const instance = axios.create({baseURL})

instance.interceptors.response.use(
    result => {
        return result.data
    },
    err => {
        alert('服务异常')
        return Promise.reject(err)  //异步的状态转为失败的状态
    }
) 

export default instance